<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<meta http-equiv="Access-Control-Allow-Origin" content="*" />

		<title>RPC-LIST</title>
		<meta name="keywords" content="RPC-LIST">
		<meta name="description" content="RPC-LIST">

		<link href="../css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
		<link href="../css/font-awesome.css?v=4.4.0" rel="stylesheet">
		<link href="../css/animate.css" rel="stylesheet">

		<link href="../css/chosen.css" rel="stylesheet">
		<link href="../css/style.css?v=4.1.0" rel="stylesheet">

		<link rel="stylesheet" type="text/css" href="../css/jquery.searchableSelect.css">

		<!-- 表格 -->
		<link href="../css/plugins/dataTables/dataTables.bootstrap.css" rel="stylesheet">

		<style type="text/css">
			html {
				margin: 0;
				padding: 0;
			}
			
			.m-header {
				position: relative;
				height: 0.48rem;
				line-height: 0.48rem;
				font-size: 0.16rem;
				border-bottom: 1px solid #EBEBEB;
				text-align: center;
				color: #2C2C2C;
				letter-spacing: 0;
				background: #fff;
			}
			
			.m-tab {
				position: relative;
				padding: 0.40rem 0 0;
				width: 100%;
				background: #fff;
			}
			
			.m-tab a {
				position: absolute;
				display: inline-block;
				width: 50%;
				font-size: 0.14rem;
				color: #2C2C2C;
				letter-spacing: 0;
				line-height: 0.38rem;
				text-align: center;
				text-decoration: none;
			}
			
			.m-tab a:first-child {
				top: 0;
				left: 0;
			}
			
			.m-tab a.m-coupons {
				top: 0;
				right: 0;
			}
			
			.m-tab a.active {
				border-bottom: 2px solid #FFAC28;
			}
			
			.m-division {
				height: 1px;
				background: #EBEBEB;
			}
			
			.m-view1 {
				background: #fff;
				height: 200px;
			}
			
			.m-view2 {
				background: #fff;
				height: 200px;
			}
			
			@media screen and (min-width: 360px) {
				html {
					font-size: 100px!important;
				}
			}
		</style>

	</head>

	<body class="gray-bg" onload="
				$('#end').val((new Date()).format('yyyy-MM-dd hh:mm:ss'));">

		<div class="m-tab">
			<a id="m-my-invite" class="active">根据服务名查询调用链</a>
			<a href="rpc_list2.html" id="m-my-coupons" class="m-coupons">根据url查询调用链</a>
			<div class="m-division"></div>
		</div>

		<div id="rpc_show">
			<div class="wrapper wrapper-content animated fadeInRight">
				<form class="form-horizontal m-t">
					<div class="form-group">
						<div class="col-sm-3" align="middle">
							<select id="center_chosen" class="form-control m-b" style="width: 200px;" onchange="typeChange()">

							</select>
						</div>

						<div class="col-sm-3" align="middle">
							<select id="type_chosen" class="form-control m-b" style="width: 200px;" onchange="typeChange()">
								<option value="allTypes">请选择服务类型...</option>
								<option value="biz">业务服务</option>
								<option value="shared">共享服务</option>
								<option value="data">数据服务</option>
								<option value="unknown">其他</option>

							</select>
						</div>

						<div class="col-sm-3" align="middle">
							<select id="app_choose" class="chosen-select" style="width: 200px;" onchange="appChange()">

							</select> <input id="app_serveciType" type="hidden">
						</div>

						<div class="col-sm-3" align="middle" style="padding-left: 20px;">
							<select id="showType" class="form-control m-b" style="width: 200px;">
								<option value="1">基于服务</option>
								<option value="2">显示全部</option>

							</select>
						</div>

					</div>

					<div class="form-group">

						<div class="col-sm-3" align="middle" style="padding-left: 20px;">
							<select id="timeScope" class="form-control m-b" style="width: 200px;" onchange="appChange()">
								<option>2天</option>
								<option>1天</option>
								<option>12小时</option>
								<option>6小时</option>
								<option>3小时</option>
								<option>1小时</option>
								<option>20分钟</option>
								<option>5分钟</option>

							</select>
						</div>
						<div class="col-sm-3" align="middle" style="padding-left: 20px;">
							<input class="form-control layer-date" id="end" placeholder="结束日期" onclick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss',choose:checkDate});">
						</div>

						<div class="col-sm-3" align="middle" style="padding-left: 20px;">
							<select id="limit" class="form-control m-b" style="width:200px;" onchange="appChange()">
								<option>请选择显示条数...</option>
								<option>100</option>
								<option>200</option>
								<option>500</option>
								<option>1000</option>
								<option>2000</option>
								<option>5000</option>
								<option>10000</option>

							</select>
						</div>

						<div class="col-sm-3" align="middle" style="padding-left: 40px;">
							<button type="button" class="btn btn-primary btn-sm" onclick="tableShow()">搜索</button>
						</div>
					</div>
				</form>

				<div class="row">
					<div class="col-sm-9">
						<div class="ibox float-e-margins">
							<div class="ibox-title">
								<h5>
							<i class="fa fa-table"></i><a id="titleInfo"> 调用关系拓扑图</a>
						</h5>
								<div class="ibox-tools">
									<a class="collapse-link"> <i class="fa fa-chevron-up"></i>
									</a>
									

								</div>
							</div>
							<div class="ibox-content" style="height: 554px;">

								<div class="echarts" id="rpc_link_chart" style="height: 530px;">

									<div id='loadingDiv' style="position: absolute; left: 48%; top: 48%; width: 30px; height: 30px; background: url(../image/loading.gif) no-repeat; text-align: center;">
										<!--<h3 style="top: 48%; position: relative;" >
							        <font color="#15428B">努力加载中···</font>
							    </h3>
							    <div id="" style="background: url(../image/cpcCenter.png);">
							    	
							    </div>-->
										<div style="top: 48%; left: 48%; background: ;"></div>
									</div>
								</div>
							</div>
						</div>
					</div>

					<div class="col-sm-3">
						<div class="ibox float-e-margins">
							<div class="ibox-title">
								<h5>
							<i class="fa fa-table"></i> 服务详细信息
						</h5>
								<div class="ibox-tools">
									<a class="collapse-link"> <i class="fa fa-chevron-up"></i>
									</a>
									

								</div>
							</div>

							<div class="ibox-content" style="height: 50px;">
								<div class="row">
									<div class="col-xs-12" id="applicationName"></div>

								</div>
							</div>
							<div class="ibox-content" style="height: 50px;">
								<div class="row">
									<div class="col-xs-12 text-success" id="responseCount"></div>

								</div>
							</div>
							<div class="ibox-content" style="height: 50px;">
								<div class="row">

									<div class="col-xs-12 text-navy" id="RTSCount"></div>
								</div>
							</div>
							<div class="ibox-content" style="height: 50px;">
								<div class="row">
									<div class="col-xs-12 text-danger" id="errorCount"></div>

								</div>
							</div>
							<div class="ibox-content" style="height: 50px;">
								<div class="row">

									<div class="col-xs-12" id="instanceCount"></div>
								</div>
							</div>
						</div>

						<div class="ibox float-e-margins">
							<div class="ibox-title">
								<h5>
							<i class="fa fa-table"></i> 响应耗时分布
						</h5>
								<div class="ibox-tools">
									<a class="collapse-link"> <i class="fa fa-chevron-up"></i>
									</a>
									

								</div>
							</div>
							<div class="ibox-content" style="height: 230px;">
								<div class="echarts" id="rpc_bar_chart"></div>
							</div>
						</div>
					</div>
				</div>

				<div class="row">
					<div class="col-sm-12">
						<div class="ibox float-e-margins">
							<div class="ibox-title">
								<h5>
							<i class="fa fa-table"></i> 服务耗时散点图
						</h5>
								<div class="ibox-tools">
									<a class="collapse-link"> <i class="fa fa-chevron-up"></i>
									</a>
									

								</div>
							</div>
							<div class="ibox-content" style="height: 350px;">
								<div class="echarts" id="rpc_scatter_chart" style="height: 320px;"></div>
							</div>
						</div>

					</div>
				</div>

				<div class="row">
					<div class="col-sm-12">
						<div class="ibox float-e-margins">
							<div class="ibox-title">
								<h5>
							<i class="fa fa-table"></i> 服务请求列表
						</h5>
								<div class="ibox-tools">
									<a class="collapse-link"> <i class="fa fa-chevron-up"></i>
									</a>
									

								</div>
							</div>
							<div class="ibox-content">
								<table id="rpc_tb" class="table table-striped table-bordered table-hover">
								</table>
							</div>

						</div>
					</div>
				</div>

			</div>

		</div>

		<div id="url_show">
			<div class="wrapper wrapper-content animated fadeInRight">
				<form class="form-horizontal m-t">

					<div class="form-group">

						<div class="col-sm-2" align="middle" style="padding-left: 20px;">
							<select id="timeScope_url" class="form-control m-b" style="width: 200px;" onchange="centerChange()">
								<option>2天</option>
								<option>1天</option>
								<option>12小时</option>
								<option>6小时</option>
								<option>3小时</option>
								<option>1小时</option>
								<option>20分钟</option>
								<option>5分钟</option>

							</select>
						</div>
						<div class="col-sm-3" align="middle" style="padding-left: 20px;">
							<input class="form-control layer-date" id="end_url" placeholder="结束日期" onclick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss',choose:checkDate_url});">
						</div>

						<div class="col-sm-2" align="middle">
							<select id="center_chosen_url" class="form-control m-b" style="width: 200px;" onchange="centerChange_url()">

							</select>
						</div>

						<div class="col-sm-3" align="middle" style="padding-left: 60px;">
							<select id="urlRpc" class="chosen-select" style="width:300px;" onchange="appChange_url()">

							</select>
						</div>

						<div class="col-sm-2" align="middle" style="padding-left: 40px;">
							<button type="button" class="btn btn-primary btn-sm" onclick="tableShow_url()">搜索</button>
						</div>
					</div>
				</form>

				<div class="row">
					<div class="col-sm-12">
						<div class="ibox float-e-margins">
							<div class="ibox-title">
								<h5>
							<i class="fa fa-table"></i><a id="titleInfo_url"> 调用关系拓扑图</a>
						</h5>
								<div class="ibox-tools">
									<a class="collapse-link"> <i class="fa fa-chevron-up"></i>
									</a>

								</div>
							</div>
							<div class="ibox-content" style="height: 454px;">

								<div class="echarts" id="rpc_link_chart_url" style="height: 430px;">

									<div id='loadingDiv' style="position: absolute; left: 48%; top: 48%; width: 30px; height: 30px; background: url(../image/loading.gif) no-repeat; text-align: center;">
										<!--<h3 style="top: 48%; position: relative;" >
							        <font color="#15428B">努力加载中···</font>
							    </h3>
							    <div id="" style="background: url(../image/cpcCenter.png);">
							    	
							    </div>-->
										<div style="top: 48%; left: 48%; background: ;"></div>
									</div>
								</div>
							</div>
						</div>
					</div>

				</div>
				
				<div class="row">
					<div class="col-sm-12">
						<div class="ibox float-e-margins">
							<div class="ibox-title">
								<h5>
							<i class="fa fa-table"></i> 服务耗时散点图
						</h5>
								<div class="ibox-tools">
									<a class="collapse-link"> <i class="fa fa-chevron-up"></i>
									</a>
									

								</div>
							</div>
							<div class="ibox-content" style="height: 350px;">
								<div class="echarts" id="rpc_scatter_chart_url" style="height: 320px;"></div>
							</div>
						</div>

					</div>
				</div>

				<div class="row">
					<div class="col-sm-12">
						<div class="ibox float-e-margins">
							<div class="ibox-title">
								<h5>
							<i class="fa fa-table"></i> 服务请求列表
						</h5>
								<div class="ibox-tools">
									<a class="collapse-link"> <i class="fa fa-chevron-up"></i>
									</a>

								</div>
							</div>
							<div class="ibox-content">
								<table id="rpc_tb_url" class="table table-striped table-bordered table-hover">
								</table>
							</div>

						</div>
					</div>
				</div>

			</div>

		</div>

		<!-- 全局js -->
		<script src="../js/jquery.min.js?v=2.1.4"></script>
		<script src="../js/bootstrap.min.js?v=3.3.6"></script>
		<script src="../js/jquery.searchableSelect.js"></script>

		<!-- 表格 -->
		<script src="../js/plugins/dataTables/jquery.dataTables.js"></script>
		<script src="../js/plugins/dataTables/dataTables.bootstrap.js"></script>

		<!-- 自定义js -->
		<script src="../js/content.js?v=1.0.0"></script>
		<script src="../js/jquery.i18n.properties-min-1.0.9.js"></script>

		<!-- 时间框 -->
		<script src="../js/plugins/layer/laydate/laydate.js"></script>
		<script src="../js/mine/time.js"></script>
		<!--	<script src="../js/app.js"></script>-->
		<script src="../js/angular.js"></script>

		<script src="../js/rpc_list.js"></script>
		<script src="../js/url_list.js"></script>
		<script src="../js/common.js"></script>
		<script src="../js/server-map-dao.service.js"></script>
		<script src="../js/chosen.jquery.js"></script>

		<!-- ECharts -->
		<script src="../js/plugins/echarts/echarts-all.js"></script>

		<script type="text/javascript">
			var myCoupons = $('#m-my-coupons');
			var myInvite = $('#m-my-invite');
			var view1 = $('#rpc_show');
			var view2 = $('#url_show');
			var show_flag;
			
			$(function() {

				view2.hide();
				view1.show();

			});
			

			/*myInvite.on('click', function() {
				myCoupons.removeClass('active');
				myInvite.addClass('active');
				view2.hide();
				view1.show();
				show_flag = 1;

			});
			myCoupons.on('click', function() {
				myInvite.removeClass('active');
				myCoupons.addClass('active');
				view1.hide();
				view2.show();
				show_flag = 2;
			});*/
		</script>

	</body>

</html>